package com.swotxu.common.conf;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 线程池配置类
 * @Date: 2021/2/14 23:24
 * @Author: swotXu
 */
@Data
//@Component    // 不注入当前 Bean，由使用方注入
@ConfigurationProperties(prefix = "mall.thread")
public class ThreadPoolConfigProperties {

    private Integer coreSize;
    private Integer maxSize;
    private Integer keepAliveTime;
    private Integer workQueueSize;

}
